import Vue from "vue";
import App from "@/App.vue";
import router from "./router/routers";
import { sync } from "vuex-router-sync";
import store from "@/store";
import axios from "./config/api";
import importPlugin from "@/plugins";
import i18n from "@/locale";
import "@/assets/icons/iconfont.css";
import "@/filters/filters";
import "@/styles/index.less";
import "./styles/site.less";
import "babel-polyfill"; //兼容性
//阻止启动时生成生产提示
Vue.config.productionTip = false;
//开发环境引入mock
/* eslint-disable */
//require("@/mock");
//路由状态同步到state
sync(store, router);
//引入插件（包括指令）
importPlugin(Vue);
//启动实例vue
new Vue({
  router,
  i18n,
  store,
  render: h => h(App)
}).$mount("#app");
